#pragma once
#include <irrlicht.h>
#include "GuiCreator.h"
#include "Sprite.h"

using namespace irr;
using namespace video;
using namespace scene;

enum GAME_STATE
{
	MAINMENU = 0,
	INGAME = 1
};

class Game
{
public:
	Game();
	~Game();
	
	
	IrrlichtDevice *device; 
	IVideoDriver *driver;
	ISceneManager *smgr;
	IGUIEnvironment *guienv;

	bool Init();
	bool InitGuiEnvironment();
	void addSpriteForRendering(Sprite* sprite);

	void GameDraw();

	void Start();
private:
	array<Sprite*> sprites;
	void Loop();
	GAME_STATE gameState;
	bool isRunning;
};